package com.itheima.Demo01.demo01;


import java.lang.annotation.Annotation;
import java.util.Arrays;

@Anno2(value = "ABA",a = 20,b = "bbbbb",arr = {3,2,1})
public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        Class name = Test.class;
        Anno2 nameAnnotation = (Anno2) name.getAnnotation(Anno2.class);
        String value = nameAnnotation.value();
        System.out.println(value);
        enum01[] s = nameAnnotation.ENUM_02();
        System.out.println(s);
        int[] arr = nameAnnotation.arr();
        System.out.println("----"+Arrays.toString(arr));
    }
}
